// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import Vuex from 'vuex'
import router from './router'
import axios from 'axios'
import '@/assets/styles/border.css'
import '@/assets/styles/reset.css'
// element
import ElementUI, {
  Notification,
  Loading
} from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
// vant
import Vant from 'vant'
import 'vant/lib/index.css'

axios.defaults.baseURL = 'http://59.110.***.***:8900'
axios.defaults.withCredentials = true

Vue.use(Loading)
Vue.config.productionTip = false
Vue.prototype.$axios = axios
Vue.prototype.$notify = Notification
Vue.use(Vuex)
Vue.use(ElementUI)
Vue.use(Vant)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  render: h => h(App),
  router,
  components: {
    App
  },
  template: '<App/>'
})
